<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>查看数据</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../assets/libs/layui/css/layui.css" media="all">
</head>

<body>

    <form class="layui-form" lay-filter="example">

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">文章编号:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="rticleaId" disabled="true" autocomplete="off" placeholder="" id="rticleaId"
                    class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">文章标题:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="rticleaTitle" lay-verify="title" autocomplete="off" placeholder=""
                    disabled="true" id="rticleaTitle" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">文章管理员:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="adminName" lay-verify="title" autocomplete="off" placeholder="" disabled="true"
                    id="adminName" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 20px">
            <label class="layui-form-label">文章时间:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="rticleaTime" lay-verify="title" autocomplete="off" placeholder=""
                    disabled="true" id="rticleaTime" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文章类型:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="rticleaType" lay-verify="required" placeholder="" disabled=" true"
                    id="rticleaType" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文章内容:</label>
            <div class="layui-input-block" style="margin-right: 20px">
                <input type="text" name="rticleaComm" lay-verify="required" placeholder="" disabled=" true"
                    id="rticleaComm" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">文章图片:</label>
            <div class="layui-input-block" style="margin-right: 20px" id="rticleaImgList">

            </div>
        </div>


    </form>

    <style>
        #rticleaImgList img {
            margin: 5px;
        }
    </style>
    <script src="../../assets/libs/layui/layui.js" charset="utf-8"></script>
    <script src="../js/util.js" charset="utf-8"></script>
    <script>



        layui.config({
            base: '/module/'
        }).use(['jquery', 'layer', 'table', 'form', 'config'], function () {
            var $ = layui.jquery;
            var layer = layui.layer;
            var table = layui.table;
            var form = layui.form;
            var config = layui.config;
            var req = GetRequest();

            var no = req['editNo'];
            $.ajax({
                url: config.base_server + 'getRticleaById?editNo=' + no,
                dataType: 'json',
                type: 'get',
                success: function (data) {
                    data = data.data;
                    $('#rticleaId').val(data.rticleaId);
                    $('#rticleaTitle').val(data.rticleaTitle);
                    $('#adminName').val(data.adminName);
                    $('#rticleaType').val(data.rticleaType);
                    $('#rticleaTime').val(data.rticleaTime);
                    $('#rticleaComm').val(data.rticleaComm);
                    (data.rticleaImgList).forEach(item => {
                        $('#rticleaImgList').append('<img  src="' + item + '" alt="" srcset="" disabled="true" name="rticleaImg" id="rticleaImg" width="100" height="100" />');
                    })
                }
            })
        });
    </script>
</body>